package com.gzx.plugin.tjzy.modular.sms.receipt.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gzx.plugin.tjzy.modular.sms.receipt.bo.GzxSmsReceiptQueryBo;
import com.gzx.plugin.tjzy.modular.sms.receipt.entity.GzxSmsReceipt;
import com.gzx.plugin.tjzy.modular.sms.receipt.vo.GzxSmsReceiptVo;

import java.util.List;
import java.util.Map;

/**
 * @author zjt
 * @description
 * @since 2025/3/11 15:14
 */
public interface GzxSmsReceiptService {

    /**
     * 分页查询短信回执
     *
     * @param smsReceiptQueryBo
     * @return
     */
    Page<GzxSmsReceiptVo> pageList(GzxSmsReceiptQueryBo smsReceiptQueryBo);

    /**
     * 保存短信发送状态
     *
     * @param smsReceiptList
     */
    void saveSMSReceipt(List<GzxSmsReceipt> smsReceiptList);


    /**
     * 查询短信发送详情
     *
     * @param batchNumber
     * @param phone
     * @return
     */
    String getSendDetail(String batchNumber, String phone);

    /**
     * 根据批次号统计短信发送结果
     *
     * @param batchNumber
     * @return
     */
    Map<String, Object> countByBatchNumber(String batchNumber);
}
